<?php
   // Reference the Smarty class library.
   require("smarty/Smarty.class.php");

   // Create a new instance of the Smarty class.
   $smarty = new Smarty;

   // Assign a few page variables. 
   $smarty->assign("pagetitle","Welcome to the Starship.");
   $smarty->assign("name","Kirk");

   // Render and display the template.
   $smarty->display("index.tpl");
?>